package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"lm/api/internal/config"
	"lm/lmrpc/lmrpcclient"
)

type ServiceContext struct {
	Config config.Config
	LmRpc  lmrpcclient.Lmrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		LmRpc:  lmrpcclient.NewLmrpc(zrpc.MustNewClient(c.LmRpc)),
	}
}
